package com.fan.teamer.controller;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.ManagedProperty;
import javax.faces.bean.RequestScoped;

import org.apache.log4j.Logger;

import com.fan.teamer.service.MemberService;

@ManagedBean(name = "editMemberProfileBean")
@RequestScoped
public class EditMemberProfileBean extends TeamerBean {

	private static Logger logger = Logger
			.getLogger(EditMemberProfileBean.class);

	private String memberEmail;

	private String firstName;
	private String lastName;
	private String gender;

	@ManagedProperty(value = "#{memberService}")
	private MemberService memberService;

	public EditMemberProfileBean() {
		super();
		// TODO Auto-generated constructor stub
	}

	public static Logger getLogger() {
		return logger;
	}

	public static void setLogger(Logger logger) {
		EditMemberProfileBean.logger = logger;
	}

	public String getMemberEmail() {
		return memberEmail;
	}

	public void setMemberEmail(String memberEmail) {
		this.memberEmail = memberEmail;
	}

	public String getFirstName() {
		return firstName;
	}

	public void setFirstName(String firstName) {
		this.firstName = firstName;
	}

	public String getLastName() {
		return lastName;
	}

	public void setLastName(String lastName) {
		this.lastName = lastName;
	}

	public String getGender() {
		return gender;
	}

	public void setGender(String gender) {
		this.gender = gender;
	}

	public MemberService getMemberService() {
		return memberService;
	}

	public void setMemberService(MemberService memberService) {
		this.memberService = memberService;
	}
	
	public String goToEditMemberProfileDetailsPageAction()
	{
		return "edit_member_profile_details";
	}

}
